Skip to content

AysyncHTTPClient support for linux#143

Open
JonasProgrammer wants to merge 3 commits intomattt:mattt/gate-linux-urlsessionfrom
SolbachLeads:bugfix/linux-url-session-2
Open

AysyncHTTPClient support for linux#143
JonasProgrammer wants to merge 3 commits intomattt:mattt/gate-linux-urlsessionfrom
SolbachLeads:bugfix/linux-url-session-2

Conversation

@JonasProgrammer
Copy link

As discussed in #127, the current workaround is not really feasible for async applications.

This PR includes an AsyncHTTPClient trait that does the following:

  • conditionally depend on AsyncHTTPClient
  • conditionally include the AsyncHTTPClient trait for EventSource
  • use typealiases to distinguish the session types

When untraited, the library should work as-is. Whith the trait active, the interface is changed to consume an HTTPClient as the session type.
I tried to change the business logic as little as possible, mostly implementing URLSession's extensions for HttpClient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant